package net.display;

import javax.servlet.http.HttpServletRequest;

import net.ko.controller.KObjectController;
import net.ko.displays.KObjectDisplay;
import net.ko.http.views.KFieldControl;
import net.ko.kobject.KObject;
import net.ko.types.HtmlControlType;

public class DispFicheFrais extends KObjectDisplay {

	@Override
	public KFieldControl getControl(KObject ko, String memberName,
			KObjectController koc, HttpServletRequest request) {
		KFieldControl result=super.getControl(ko, memberName, koc, request);
		
		switch (memberName) {
		case "idEtat":
			result.setFieldType(HtmlControlType.khcReadOnlyList);
			break;
		case "mois":
			result.setFieldType(HtmlControlType.khcReadOnlyText);
			break;
		case "dateModif":
			result.setFieldType(HtmlControlType.khcReadOnlyText);
			break;
		case "nbJustificatifs":
			result.setFieldType(HtmlControlType.khcReadOnlyText);
			break;
		case "montantValide":
			result.setFieldType(HtmlControlType.khcReadOnlyText);
			break;

		
		}
		
		
		return result;
	}

}
